﻿using RBAC.LuFang.Domain.Traceability;
using RBAC.LuFang.Repository.lnterface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.LuFang.Repository.lmpl
{
    //屠宰
    public class slaughterRepository : BaseRepository<slaughter>, IslaughterRepository
    {
        public slaughterRepository(EFCoreContext corecontext) : base(corecontext)
        {
        }
        public async Task<List<slaughter>> Get(Expression<Func<slaughter, bool>> expre)
        {
            return await base.Get(expre);
        }
        //删除 删除实体
        public Task<int> Del(slaughter id)
        {
            return base.Del(id);
        }
        //添加
        public async Task<int> GetAddAsync(slaughter t)
        {
            return await base.GetAddAsync(t);
        }
        //显示 不带异步
        public List<slaughter> GetAll()
        {
            return base.GetAll();
        }

        //显示 带异步
        public async Task<List<slaughter>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }
        //反填
        public async Task<slaughter> GetByidAsync(int id)
        {
            return await base.GetByidAsync(id);
        }
        //修改
        public async Task<int> GetUpd(slaughter t)
        {
            return await base.GetUpd(t);
        }
    }
}
